Current Location: Home> Function Categories> sin

sin

Sine
Name:sin
Category:math
Programming Language:php
One-line Description:Sine.

Definition and usage

sin() function returns the sine of a number.

Example

In this case, we will calculate the sine of different values:

 <?php
echo ( sin ( 3 ) ) ;
echo ( sin ( - 3 ) ) ;
echo ( sin ( 0 ) ) ;
echo ( sin ( M_PI ) ) ;
echo ( sin ( M_PI_2 ) )
?>

Try it yourself

grammar

 sin ( x )
parameter describe
x Required. A number.

illustrate

sin() returns the sine value of parameter x . The unit of parameter x is radians.

Similar Functions
Popular Articles